package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @author walton
 * @description 短信充值记录
 * @date 2020/11/23 16:25
 */
@Data
public class TenantSmsPayLog extends Model<TenantSmsPayLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 短信充值条数
     */
    private Integer smsAmount;

    /**
     * 剩余可发送短信条数
     */
    private Integer smsResidual;

    private Long payTime;

    private String tenantId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TenantSmsPayLog{" +
                "id=" + id +
                ", smsAmount=" + smsAmount +
                ", smsResidual=" + smsResidual +
                ", payTime=" + payTime +
                ", tenantId='" + tenantId + '\'' +
                '}';
    }
}
